Containers
Docker containers operations using the owning DockerClient.
Result-returning methods report daemon HTTP errors as ErrorResponse. Transport/decoding failures and cancellation can throw. Live flows report request failures during collection.
Functions
Attaches to the existing container process; it does not start a new shell. The caller owns the returned ExecSession. Collect its output once and close it if never collected. Cancellation/completion of output closes the raw connection. TTY framing follows the inspected container configuration.
Creates but does not start the container. Pull the image first if absent. A name conflict is returned as an error; existing resources are not replaced.
Creates an exec instance in a running container without starting its command. Pass the returned ID to Exec.startInteractive or Exec.startAndForget.
Returns a tar archive of the requested container path. Read the channel to completion or cancel it.
Returns the raw Base64-encoded X-Docker-Container-Path-Stat header, or an empty string when absent. Decode the header separately to obtain path metadata. Bodyless HTTP errors remain error results.
Get changes on a container's filesystem
Inspects the container immediately to determine TTY framing, then returns a cold flow. The log request opens during collection. HTTP errors then throw dev.limebeck.libs.docker.client.model.DockerApiException; transport, decoding and collector failures propagate. Cancellation or completion releases the request. Follow mode has no implicit timeout; the caller owns its deadline and resubscription policy.
With stream=true, returns a cold flow whose HTTP request opens on collection. HTTP errors during collection throw dev.limebeck.libs.docker.client.model.DockerApiException; malformed samples fail collection. With stream=false, performs the request now and wraps a successful sample in a one-element flow. Cancellation releases the streaming request. CPU percentages require successive counter samples.